package com.unimas.dof.converter;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

public class StringConverter implements Converter {

	public Object convert(Class type, String paramName, HttpServletRequest request) {
		Map<String,String[]> parameters = request.getParameterMap();
		
		String value[] = parameters.get(paramName);
		
		if(value == null){
			return null;
		}
		
		return value[0];
	}

}
